import Vue from 'vue'
import App from './App'

import store from './store'
import api from "./fetch/url";

Vue.config.productionTip = false

Vue.prototype.$store = store
Vue.prototype.$api = api;

const json = type=>{
	//模拟异步请求数据
	return new Promise(resolve=>{
		setTimeout(()=>{
			resolve(Json[type]);
		}, 500)
	})
}
App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
